package com.jinmei.web.action;

import com.jinmei.model.ToDoList;
import com.jinmei.service.ToDoListService;
import com.jinmei.utils.TaskActionUtils;

public class SaveOrUpdateTaskAction extends BaseAction {
	
	private static final long serialVersionUID = 1L;

	private ToDoListService toDoListService;

	private String status;

	public String savetask() throws Exception{
		ToDoList task = TaskActionUtils.convertRequestPar2Task(request);
		status = toDoListService.saveOrUpdateTask(task);
		return SUCCESS;
	}

	public ToDoListService getToDoListService() {
		return toDoListService;
	}

	public void setToDoListService(ToDoListService toDoListService) {
		this.toDoListService = toDoListService;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}
